package com.cuit.riskassessment.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cuit.riskassessment.dao.cardinfo.CardInfoMapper;
import com.cuit.riskassessment.service.CardInfoService;
import com.cuit.riskassessment.vo.CardInfo;
import com.cuit.riskassessment.vo.StaffInfo;
@Service(value = "cardInfoServiceObject")
public class CardInfoServiceImpl implements CardInfoService{
@Autowired
@Resource(name = "cardInfoMapper")
private CardInfoMapper mapper;
	@Override
	public void add(CardInfo cardInfo) {
		mapper.add(cardInfo);
	}

	@Override
	public void del(String id) {
		mapper.del(id);
	}

	@Override
	public List<CardInfo> getAll(String pid) {
		return mapper.getAll(pid);
	}

	@Override
	public List<StaffInfo> getAllName() {
		return mapper.getAllName();
	}

	@Override
	public List<CardInfo> getByElement(String pid, String element, String value) {
		return mapper.getByElement(pid, element, value);
	}

	@Override
	public List<StaffInfo> getNameByElement(String value) {
		return mapper.getNameByElement(value);
	}

	@Override
	public String havePhoto(String id) {
		return mapper.havePhoto(id);
	}

	@Override
	public void update(CardInfo cardInfo) {
		mapper.update(cardInfo);
	}

	@Override
	public List<CardInfo> allCards() {
		return mapper.allCards();
	}

	@Override
	public String getName(String id) {
		// TODO Auto-generated method stub
		return mapper.getName(id);
	}

}
